package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @RequestMapping("/v1/user/login")
    @ResponseBody
    public String login(){
        return "恭喜你，登录成功！";
    }

    @RequestMapping("/v1/user/register")
    @ResponseBody
    public String register(){
        return "恭喜你，注册成功！";
    }
}
